﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreHelper.Validation
{
    /// <summary>
    /// 一个实体的验证结果
    /// </summary>
    public class ValidResultObject : ResultObject<List<ValidResultObject.ValidResultItem>>
    {
        /// <summary>
        /// 验证结果项
        /// </summary>
        public class ValidResultItem
        {
            /// <summary>
            /// 验证字段的名称
            /// </summary>
            public string Name { get; set; }
            /// <summary>
            /// 验证字段的值
            /// </summary>
            public object Value { get; set; }
            /// <summary>
            /// 错误信息列表
            /// </summary>
            public List<string> ErrorMessages { get; set; }
        }
    }
}
